package com.macrounion.atv.service.mapper;

import com.macrounion.atv.service.dto.resp.SpotListRespDto;
import com.macrounion.atv.service.dto.resp.SpotRespDto;
import com.macrounion.atv.service.entity.Device;
import com.macrounion.atv.service.entity.Spot;
import com.macrounion.atv.service.entity.ext.SpotExt;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SpotMapperExt {

    List<Spot> findSpotByparentId(@Param("parentId")String parentId);

    List<SpotListRespDto> getSpotListBySpot(SpotExt spot);

    List<Spot> getAllSpot();

    int findCount(Spot spot);

    List<Spot> getAllParentSpotById(@Param("spotId") String spotId);

    List<Spot> getChildrenSpotById(@Param("spotId") String spotId);

}